//
//  UILabel+LCExtension.h
//  LCPackage
//
//  Created by 马军凯 on 2021/6/22.
//  Copyright © 2021 龙采科技集团. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum {
    LC_Horizontal,//宽度
    LC_Vertical //高度
}LC_Direction;

@interface UILabel (LCExtension)

/** 自动返回label的高度或者 长度*/
- (CGSize)LC_text:(NSString *)text Auto:(LC_Direction)direction;
- (CGSize)LC_attrText:(NSAttributedString *)text Auto:(LC_Direction)direction;

- (CGSize)LC_text:(NSString *)text numberOfLines:(NSInteger)number Auto:(LC_Direction)direction;
- (CGSize)LC_attrText:(NSAttributedString *)text numberOfLines:(NSInteger)number Auto:(LC_Direction)direction;

//改变label内某一个字段的颜色
- (void)changeLabelTitleColorWith:(NSString *)text textColor:(UIColor *)textColor;

@end

NS_ASSUME_NONNULL_END
